# -*- coding: utf-8 -*-

import os
import django

from common.loggermgr import LoggerManager
from common.exceptionmgr import ExceptionManager
from common.uniqueprocess import UniqueProcess

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "web.settings")
django.setup()

if __name__ == "__main__":
    u = UniqueProcess()
    u.check()

    logger = LoggerManager().getLogger()
    try:
        logger.info('test')
    except:
        ExceptionManager().on_except()
